﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAL;


//员工对应的帐套
namespace BLL
{
    public class EmpSetsBiz
    {
        EmpSetsDao empSetsDao = new EmpSetsDao();
        //取出工资帐套ID  一个员工对应一个工资帐套 
        public string GetSetsID(string empCode)
        {
            return empSetsDao.GetSetsID(empCode);
        }
        public bool IsExistEmpCode(string empCode)
        {
            return empSetsDao.IsExistEmpCode(empCode);
        }
        public DataTable GetOneInfo(string empCode)
        {
            return empSetsDao.GetOneInfo(empCode);
        }
        //删除整个部门
        public bool DeleteDeptInfo(string deptID, string setsID)
        {
            return empSetsDao.DeleteDeptInfo(deptID, setsID);
        }
        //删除一个工号的
        public bool DeleteOneInfo(string empCode)
        {
            return empSetsDao.DeleteOneInfo(empCode);
        }
        public DataTable GetLists()
        {
            return empSetsDao.GetLists();
        }
        public DataTable GetLists(string empCode, string deptID, string setsID)
        {
            return empSetsDao.GetLists(empCode, deptID, setsID);
        }
        //给单个员工或部门设置帐套
        public bool ConfigSets(string empCode, string deptID, string setsID)
        {

            return empSetsDao.ConfigSets(empCode, deptID, setsID);
        }
        //给以队列人设置帐套
        public bool ConfigSets(ArrayList empCodeArray, string setsID)
        {

            return empSetsDao.ConfigSets(empCodeArray, setsID);
        }
      
    }
}
